home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_gen
/
t4diblib.zip
/
ANIMATE2.F4_
/
ANIMATE2.F4
Wrap
Text File
|
1995-12-11
|
3KB
|
103 lines
VERSION 4.00
Begin VB.Form Form1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "ANIMATE2"
ClientHeight = 1764
ClientLeft = 2628
ClientTop = 2688
ClientWidth = 2868
BeginProperty Font
name = "MS Sans Serif"
charset = 1
weight = 700
size = 7.8
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 2184
Left = 2580
LinkTopic = "Form1"
ScaleHeight = 1764
ScaleWidth = 2868
Top = 2316
Width = 2964
Begin VBX.T4DILIB dilib1
Caption = "dilib1"
ControlMode = 0 'Lib -> PIC
Height = 372
Left = 1800
Top = 1200
Visible = 0 'False
Width = 852
End
Begin VB.CommandButton Command1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "&Quit"
Height = 372
Left = 120
TabIndex = 0
Top = 1200
Width = 1452
End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Private Declare Function GetFreeSpace& Lib "kernel" (ByVal x%)
Dim TimeIn!
Dim Frames%
Private Sub Command1_Click()
Terminate
End Sub
Private Sub Form_Load()
Dim loopctr%, memctr%, numberofmembers%
Top = (Screen.Height - Height) / 2!
Left = (Screen.Width - Width) / 2!
dilib1.LibraryName = "bluespin.ilb"
dilib1.Action = IM_ACTION_OPENLIBRARY
numberofmembers = dilib1.MemberCount
'Load all member names.
ReDim MemName(1 To numberofmembers) As String
For memctr = 1 To numberofmembers
dilib1.MemberNumber = memctr
MemName(memctr) = dilib1.MemberName
Next
Show
Frames = 0
TimeIn = Timer
For loopctr = 1 To 100
For memctr = 1 To UBound(MemName)
'Cycle through the name array.
dilib1.MemberName = MemName(memctr)
dilib1.Action = IM_ACTION_GETMEMBER
Picture = dilib1.Picture
Frames = Frames + 1
Next memctr
DoEvents
Next loopctr
Terminate
End Sub
Private Sub Form_Unload(Cancel As Integer)
End
End Sub
Private Sub Terminate()
Dim TimeOut!, TimeElapsed!, fps!
TimeOut = Timer
TimeElapsed = TimeOut - TimeIn
fps = Frames
fps = Frames / TimeElapsed
MsgBox Trim$(Str$(fps)) + " frames per second."
End
End Sub